package com.chookss.home.adapter;

import android.content.Context;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.chookss.R;

import java.util.ArrayList;

public class TabAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    private Context context;
    public TabAdapter(int layoutResId, Context context, @io.reactivex.annotations.Nullable ArrayList<String> data) {
        super(layoutResId, data);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, String entity) {
        TextView title = helper.getView(R.id.title);
        title.setText(entity);
    }
}
